home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Acao / DomonicDefence4.swf / scripts / frame_16 / PlaceObject2_510_190 / CLIPACTIONRECORD onClipEvent(enterFrame).as next >
Encoding:
Text File  |  2005-09-27  |  309 b   |  19 lines

  1. onClipEvent(enterFrame){
  2.    if(this._x < 519.5 && this.backo != 1)
  3.    {
  4.       if(this._x > 516)
  5.       {
  6.          this.backo = 1;
  7.       }
  8.       this._x += random(3) + 4;
  9.    }
  10.    else
  11.    {
  12.       this._x -= random(3) + 4;
  13.       if(this._x < 198)
  14.       {
  15.          this.backo = 0;
  16.       }
  17.    }
  18. }
  19.